const { Switch } = require("../lib/types");

module.exports = {
    name: "ngx_stream_core_module",
    map: {
        listen: [String, , "server"],
        preread_buffer_size: [String, "16k", ["stream", "server"]],
        preread_timeout: [String, "30s", ["stream", "server"]],
        proxy_protocol_timeout: [String, "30s", ["stream", "server"]],
        resolver: [String, , ["stream", "server"]],
        resolver_timeout: [String, "30s", ["stream", "server"]],
        tcp_nodelay: [Switch, true, ["stream", "server"]],
        variables_hash_bucket_size: [String, "64", "stream"],
        variables_hash_max_size: [String, "1024", "stream"]
    }
};